package com.infore.dataReceiving.repository;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.infore.dataReceiving.entity.RealEquipmentInfo;

public interface IRealEquipmentInfoRepository extends JpaRepository<RealEquipmentInfo, String>,
            JpaSpecificationExecutor<RealEquipmentInfo>  {
	
    List<RealEquipmentInfo> findByMnAndCodeInOrderByFactorCodeDesc(String mn, List<String> codes);
    
    List<RealEquipmentInfo> findByMnAndFactorCodeAndCodeInOrderByCodeDesc(String mn, String factorCode, List<String> codes);
    
    List<RealEquipmentInfo> findByMnAndFactorCodeInAndCodeInOrderByCodeDesc(String mn, List<String> factorCodes, List<String> codes);
    
}
